// users.js
import { defineStore } from 'pinia';

export const useUserStore = defineStore('users', {
    state: () => ({
        name: '' ,
        id: '' ,
        password: '',
    }),
    actions: {
        setUsername(uname) {
            this.name = uname;
        },
        setId(id) {
            this.id = id;
        },
        setPassword(password) {
            this.password = password;
        },
    },
});